package com.example.online.controller.userController;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@Controller
@RequestMapping(value="/user",method = RequestMethod.GET)
public class UserController {
    /**
     * 转至注册页面
     * @return
     */
    @GetMapping(value = "/register")
    public String userRegister()
    {
        return "user/register";
    }
    /**
     * 转至登录页面
     */
    @GetMapping(value = "/login")
    public String userLogin(){
        return "user/login";
    }
    /**
     * 转至个人主页
     */
    @GetMapping(value ="/owner" )
    public String userInfo(){
        return "user/info";
    }
}
